<?php

namespace App\Models;


class Fangattr extends Base
{
    //
    public function getList(){
        //获取全部数据
        $data = self::get()->toArray();
        return $this->treeLevel($data);
    }
    //获取器
    public function getPicAttribute()
    {
        return config('url.domain'.$this->attributes['pic']);
    }
}
